<?php

class FP_Application_Subsystem_Mail implements FP_Application_Subsystem_Interface {

    protected $_config = null;

    public function init($pConfig=null){

	$this->_config = $pConfig;

	if (strtolower($this->_config->mode) == 'smtp'){
	    $transport = new Zend_Mail_Transport_Smtp(
		$this->_config->smtp->server,
		$this->_config->smtp->auth
	    );
	    Zend_Mail::setDefaultTransport($transport);
	}

    }


}

?>